package cn.topcodes.tcsf.app.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * APP公告
 *
 * @author unicorn
 */
@Data
public class NoticeForm implements Idable {

    private Long id;

    /*公告标题*/
    private String title;

    /*公告类型：纯文本，图文，网页*/
    @NotBlank(message = "公告类型不能为空")
    private String type;

    /*公告内容*/
    @NotBlank(message = "公告内容不能为空")
    private String content;
}